package com.zhuss.bean.bo.order.order;

import java.io.Serializable;

import com.zhuss.common.BaseBo;
import com.zhuss.common.IdBo;


public class WxPayBo extends IdBo  implements Serializable, BaseBo {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2979912835014289272L;
	
	private String appId;
	
	private String mchId;
	
	private String key;
	
	private String tradeType;
	
	private String notifyUrl;
	
	private final String spbillCreateIp = "127.0.0.1";
	
	private final String feeType = "CNY";
	
	private String nonceStr;

	private Long totalPrice;
	
	private String orderNo;
	
	private String body;
	
	public WxPayBo buildAppId(String appId) {
		this.appId = appId;
		return this;
	}
	
	public WxPayBo buildMchId(String mchId) {
		this.mchId = mchId;
		return this;
	}
	
	public WxPayBo buildKey(String key) {
		this.key = key;
		return this;
	}
	
	public WxPayBo buildTradeType(String tradeType) {
		this.tradeType = tradeType;
		return this;
	}
	
	public WxPayBo buildNotifyUrl(String notifyUrl) {
		this.notifyUrl = notifyUrl;
		return this;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getMchId() {
		return mchId;
	}

	public void setMchId(String mchId) {
		this.mchId = mchId;
	}
	
	public String getKey() {
		return key;
	}
	
	public void setKey(String key) {
		this.key = key;
	}

	public String getTradeType() {
		return tradeType;
	}

	public void setTradeType(String tradeType) {
		this.tradeType = tradeType;
	}

	public String getNotifyUrl() {
		return notifyUrl;
	}

	public void setNotifyUrl(String notifyUrl) {
		this.notifyUrl = notifyUrl;
	}

	public String getNonceStr() {
		nonceStr = (long)(Math.random() * 2000000000000000000L) + "";
		return nonceStr;
	}

	public void setNonceStr(String nonceStr) {
		this.nonceStr = nonceStr;
	}

	public Long getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(Long totalPrice) {
		this.totalPrice = totalPrice;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public String getSpbillCreateIp() {
		return spbillCreateIp;
	}

	public String getFeeType() {
		return feeType;
	}
    
}